package com.nmwlw.demo.data.state

import com.nmwlw.demo.data.DataSource.BaudRateOptions
import com.nmwlw.demo.data.DataSource.ComOptions

data class ComAssistantState(
    val currentContext: String = "控制台预设文本",

    val comAText : String = "comA预设文本",
    val comBText : String = "comB预设文本",
    val comCText : String = "comC预设文本",
    val comDText : String = "comD预设文本",
    // 打开串口
    var comAChecked :Boolean = false,
    var comBChecked :Boolean = false,
    var comCChecked :Boolean = false,
    var comDChecked :Boolean = false,
    // 多选项展开管理
    var comAExpanded :Boolean = false,
    var comBExpanded :Boolean = false,
    var comCExpanded :Boolean = false,
    var comDExpanded :Boolean = false,

    var baudAExpanded :Boolean = false,
    var baudBExpanded :Boolean = false,
    var baudCExpanded :Boolean = false,
    var baudDExpanded :Boolean = false,
    // 选项显示
    var comASelectedOption : String = ComOptions[2],
    var comBSelectedOption : String = ComOptions[0],
    var comCSelectedOption : String = ComOptions[0],
    var comDSelectedOption : String = ComOptions[0],

    var baudASelectedOption : String = BaudRateOptions[4],
    var baudBSelectedOption : String = BaudRateOptions[0],
    var baudCSelectedOption : String = BaudRateOptions[0],
    var baudDSelectedOption : String = BaudRateOptions[0],

    // 切换发送接收数据为16进制：false[Txt] true[Hex]
    var enableHex : Boolean = false
)
